home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 003-desktop.lzm / etc / profile.d / qt.sh < prev   
Encoding:
Linux/UNIX/POSIX Shell Script  |  2008-02-28  |  554 b   |  24 lines

  1. #!/bin/sh
  2. # Environment variables for the Qt package.
  3. #
  4. # It's best to use the generic directory to avoid
  5. # compiling in a version-containing path:
  6. if [ -d /usr/lib/qt ]; then
  7.   QTDIR=/usr/lib/qt
  8. else
  9.   # Find the newest Qt directory and set $QTDIR to that:
  10.   for qtd in /usr/lib/qt-* ; do
  11.     if [ -d $qtd ]; then
  12.       QTDIR=$qtd
  13.     fi
  14.   done
  15. fi
  16. if [ ! "$CPLUS_INCLUDE_PATH" = "" ]; then
  17.   CPLUS_INCLUDE_PATH=$QTDIR/include:$CPLUS_INCLUDE_PATH
  18. else
  19.   CPLUS_INCLUDE_PATH=$QTDIR/include
  20. fi
  21. PATH="$PATH:$QTDIR/bin"
  22. export QTDIR
  23. export CPLUS_INCLUDE_PATH
  24.